import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { DeviceData, DeviceDataDocument } from './schemas/deviceData';
import { RawData, RawDataDocument } from './schemas/rawData';
import { OrderPowerData, OrderPowerDataDocument } from './schemas/orderPowerData';

@Injectable()
export class MongodbService {
    constructor(
        @InjectModel(DeviceData.name) public readonly deviceData: Model<DeviceDataDocument>,
        @InjectModel(RawData.name) public readonly rawData: Model<RawDataDocument>,
        @InjectModel(OrderPowerData.name) public readonly orderPowerData: Model<OrderPowerDataDocument>
    ){}
}
